<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>winmain.html</title>
<script>
var w;
window.onload=function(){
	var btn=document.getElementById('winopen');
	
	btn.onclick=function(){
		w= window.open('winsub.html', 'w', 'width=400px, height=300px, toolbar=yes');
	}
}

</script>


</head>
<body>
<input type='button' value='창열기' id='winopen'>
<br/>
전달한 메시지: <input type="text" id='sendMessage'>
<br/>
수신된 메시지: <input type="text" id='receiveMessage'>

</body>
</html>